<?php

include "connect.php";
$student_id=$_POST['student_id'];
$name=$_POST['name'];
$f_name=$_POST['f_name'];
$dob=$_POST['dob'];
$religion=$_POST['religion'];
$telephone=$_POST['telephone'];
$address=$_POST['address'];
$e_mail=$_POST['e_mail'];
$previous_school=$_POST['previous_school'];
$short_course_id=$_POST['short_course_id'];
$date=$_POST['date'];
$campus_id=$_POST['campus_id'];
$subject_1=$_POST['subject_1'];
$subject_2=$_POST['subject_2'];
$subject_3=$_POST['subject_3'];
$subject_4=$_POST['subject_4'];

$sq=mysql_query("select * From student_info_sht where student_id='$student_id'");
while ($row = mysql_fetch_array($sq)) {
$sql=mysql_query("UPDATE student_info_sht SET student_id='$student_id',name='$name',f_name='$f_name',dob='$dob',religion='$religion',telephone='$telephone',address='$address',e_mail='$e_mail',previous_school='$previous_school',short_course_id='$short_course_id',date='$date',campus_id='$campus_id',subject_1='$subject_1',subject_2='$subject_2',subject_3='$subject_3',subject_4='$subject_4'
  where student_id='$student_id'");


header("location:update_short_course_info_success.php");
}
?>
